Is there a way to provide named parameters in a function call in JavaScript